

def max(mylist:list):
    my_list.sort(reverse=True)
    print('最大值:',my_list[0])
def min(mylist:list):
    my_list.sort(reverse=False)
    print('最小值:',my_list[0])




if __name__ == '__main__':
    my_list = [1,2,3,4,5]
    sum = 0
    for i in my_list:
        sum += i
        if str(i) == '3':
            print('存在这个玩意!')


    max(my_list)
    min(my_list)

    print(sum)
